#ifndef _TEACHERDBSAVER_H
#define _TEACHERDBSAVER_H


#include "ITeacherDbSaver.h"
#include <string>
using namespace std;

class TeacherDbSaver : public ITeacherDbSaver {
  public:
   /**
    * Connects to the database using default values from DbElementProvider
    * \throw if connection failed
    */
    TeacherDbSaver();

   /**
    * Connects to the database with the given params
    * \param dbName, database data source name
    * \param username, user username
    * \param password, user password
    * \throw if connection failed
    */
    TeacherDbSaver(const string * dbName, const string * username, const string * password);

    /**
     * Does nothing
     */
    virtual ~TeacherDbSaver();

	/**
	 * Saves teacher's values
	 * \param insuranceNumber, string pointer to const string insurance number (e.x. ika)
	 * \param name, string pointer to const string teacher name
	 * \param lastName, , string pointer to const string last name
	 * \return true if saving succeed
	 */
    virtual bool saveTeacher(const string * insuranceNumber, const string * name, const string * lastName, const string * aem, const string * fatherID);

};
#endif
